#pragma once
#include "basetoken.h"
#include "../AnimationSystem/Animation.h"


class PlayerToken :
	public BaseToken
{
	int m_nHealth;
	int m_nStamina;
	int m_nDamage;
	float m_fSpeed;
	float m_fJumpSpeed;
	float m_fFireTimer;

	float timerforanim;

	Animation* m_playerTestAnim;

	bool panim;

public:
	PlayerToken(void);
	~PlayerToken(void);

	// Interface methods
	void Update( float fElapsedTime );
	void Render( void );
	RECT GetRect( void ) const;
	bool CheckCollision( IBaseToken* pOther );

	// Accesors
	int GetHealth( void )	   const { return m_nHealth; }
	int GetStamina( void )	   const { return m_nStamina; }
	int GetDamage( void )	   const { return m_nDamage; }
	float GetSpeed( void )	   const { return m_fSpeed; }
	float GetJumpSpeed( void ) const { return m_fJumpSpeed; }
	float GetFireTimer( void ) const { return m_fFireTimer; }

	// Mutators
	void SetHealth( int nHealth )		{ m_nHealth = nHealth; }
	void SetStamina( int nStamina )		{ m_nStamina = nStamina; }
	void SetDamage( int nDamage )		{ m_nDamage = nDamage; }
	void SetSpeed( float fSpeed )		{ m_fSpeed = fSpeed; }
	void SetJumpSpeed( float fJSpeed )	{ m_fJumpSpeed = fJSpeed; }

};

